var depot = {

	depot : null,

	init : function() {
		depot = new Mojo.Depot( {
			name : Mojo.Controller.appInfo.id,
			replace : false
		}, this.doNothing, this.reportError);
		depot.get("elizaInitials", this.initInitials);
		depot.get("elizaFinals", this.initFinals);
		depot.get("elizaQuits", this.initQuits);
		depot.get("elizaPres", this.initPres);
		depot.get("elizaPosts", this.initPosts);
		depot.get("elizaSynons", this.initSynons);
		depot.get("elizaKeywords", this.initKeywords);
	},

	initKeywords : function(value) {
		if (value != null) {
			elizaKeywords = value;
		} else {
			depot.add("elizaKeywords", elizaKeywords);
		}
	},
	
	
	initSynons : function(value) {
		if (value != null) {
			elizaSynons = value;
		} else {
			depot.add("elizaSynons", elizaSynons);
		}
	},
	
	initPosts : function(value) {
		if (value != null) {
			elizaPosts = value;
		} else {
			depot.add("elizaPosts", elizaPosts);
		}
	},

	
	initPres : function(value) {
		if (value != null) {
			elizaPres = value;
		} else {
			depot.add("elizaPres", elizaPres);
		}
	},


	initQuits : function(value) {
		if (value != null) {
			elizaQuits = value;
		} else {
			depot.add("elizaQuits", elizaQuits);
		}
	},

	initFinals : function(value) {
		if (value != null) {
			elizaFinals = value;
		} else {
			depot.add("elizaFinals", elizaFinals);
		}
	},

	setQuits : function(value) {
		elizaQuits = value;
		depot.add("elizaQuits", elizaInitials);
	},
	
	setFinals : function(value) {
		elizaFinals = value;
		depot.add("elizaFinals", elizaInitials);
	},

	initInitials : function(value) {
		if (value != null) {
			elizaInitials = value;
		} else {
			depot.add("elizaInitials", elizaInitials);
		}
	},
	
	doNothing : function() {

	},

	reportError : function(code) {
		Mojo.Log.error("depot failed:" + code);
	},

	get : function(param, callback) {
		this.depot.get(param, callback, this.reportError);
	},
	
	add : function(param, value) {
		this.depot.add(param, value, this.doNothing, this.reportError);
	},
	
	removeAll : function() {
		this.depot.removeAll(this.doNothing, this.reportError);
	},
	
	discard : function(param) {
		this.depot.discard(param, this.doNothing, this.reportError);
	},
	
	
};